<template>
  <h1>El组件-下拉选框</h1>
  <el-select v-model="city" placeholder="请选择城市" style="width: 200px">
    <el-option label="南京" value="nj"></el-option>
    <el-option label="北京" value="bj"></el-option>
    <el-option label="上海" value="sh"></el-option>
    <el-option label="广州" value="gz"></el-option>
  </el-select>
  <h4>您选择的城市是：{{city}}</h4>



</template>
<script setup>
import { ref } from 'vue'
const city = ref('nj')




</script>


<style scoped>

</style>